$OpenBSD: patch-CMakeLists_txt,v 1.2 2014/07/09 20:03:26 zhuk Exp $
--- CMakeLists.txt.orig	Sun May  4 11:34:55 2014
+++ CMakeLists.txt	Sun May 18 22:00:09 2014
@@ -17,7 +17,9 @@ find_package(GLIB2)
 macro_optional_find_package(Canberra)
 macro_log_feature(CANBERRA_FOUND "libcanberra" "libcanberra audio library" "http://0pointer.de/lennart/projects/libcanberra/" FALSE "" "libcanberra is needed for kmix sound feedback")
 
-alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+if (HAVE_LIBASOUND2)
+    alsa_configure_file(${CMAKE_BINARY_DIR}/config-alsa.h)
+endif (HAVE_LIBASOUND2)
 
 
 add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} )
